package com.es.system.domain;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 系统用户
 * </p>
 *
 * @author everysucceed
 * @since 2021-12-09
 */
@Getter
@Setter
@TableName("sys_user")
@ApiModel(value = "SysUserDO对象", description = "系统用户")
public class SysUser implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("主键")
    @JsonFormat(shape=JsonFormat.Shape.STRING)
    private Long dataId;

    @ApiModelProperty("用户名")
    private String username;

    @ApiModelProperty("密码")
    private String password;

    @ApiModelProperty("盐值")
    private String salt;

    @ApiModelProperty("状态 0 正常 1 锁定")
    private String userStatus;

    @ApiModelProperty("真实姓名")
    private String realName;

    @ApiModelProperty("电子邮箱")
    private String email;

    @ApiModelProperty("头像")
    private String avatar;

    @ApiModelProperty("性别 0 男 1女")
    private Integer sex;

    @ApiModelProperty("性别 0 男 1女")
    private String sexTitle;

    @ApiModelProperty("联系电话")
    private String phone;

    @ApiModelProperty("是否登录 0 是 1 否")
    private String login;

    @ApiModelProperty("创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;

    @ApiModelProperty("修改时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updateTime;

    @ApiModelProperty("创建人")
    private Long createUser;

    @ApiModelProperty("修改人")
    private Long updateUser;

    @ApiModelProperty("数据版本")
    private Integer dataVersion;

    @ApiModelProperty("是否启用")
    private Integer dataEnable;


}
